user_data = ["shanlin"]
user_vip = ["guoshanlin"]
user_data_password = "123456"
user_vip_password = "12345"

import time
username = input("请输入正确的账号：")
password = input("请输入正确的密码：")

if username in user_data or username in user_vip:
    if password == user_data_password or password == user_vip_password:
        print("登陆成功，欢迎", username, "使用~")
    else:
        print("您的用户不存在或密码错误，请重新输入！")
        username = input("请输入正确的账号：")
        password = input("请输入正确的密码：")
        if username in user_data or username in user_vip:
            if password == user_data_password:
                print("登陆成功，欢迎", username, "使用~")

if username in user_data:
    print("欢迎，今天您有5次查询课表的机会！请输入时间.为您推出您想要的课程表。 例如:2021-9-28")
    count = 6
    while True:
        count -= 1
        if count == 0:
            print("今日机会已使用完，请明日再试")
            break
        else:
            print("您今天还有", count, "次机会")

            date = input("time: ")
            day = time.strptime(date, '%Y-%m-%d')
            week_time = int(time.strftime('%w', day))
            print("周" + str(week_time))
            if week_time == 1:
                print("3-5 毛概实践");
                print("8-10 python");
            elif week_time == 2:
                print("3-5 广告学概论");
                print("8-9 H5");
            elif week_time == 3:
                print("1-2 篮球");
                print("4-5 大学英语")
                print("12-13 设计美学")
            elif week_time == 4:
                print("4-5 毛概理论");
            else:
                print("1-2 大学英语")
                print("3-5 创业实践")
                print("8-9 手绘")


else:
    print("您好，今日您将有十次查询课表的机会")
    count = 11
    while True:
        count -= 1
        if count == 0:
            print("今日机会已使用完，请明日再试")
            break
        else:
            print("您今天还剩", count, "次机会")

            date = input("time: ")
            day = time.strptime(date, '%Y-%m-%d')
            week_time = int(time.strftime('%w', day))
            print("周" + str(week_time))
            if week_time == 1:
                print("3-5 毛概实践");
                print("8-10 python");
            elif week_time == 2:
                print("3-5 广告学概论");
                print("8-9 H5");
            elif week_time == 3:
                print("1-2 篮球");
                print("4-5 大学英语")
                print("12-13 设计美学")
            elif week_time == 4:
                print("4-5 毛概理论");
            else:
                print("1-2 大学英语")
                print("3-5 创业实践")
                print("8-9 手绘")